package com.srlg.webflux.service;

import com.srlg.webflux.entity.Author;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public interface AuthorService {

    Flux<Author> getAllAuthor();

    /**
     * 用id获取作者
     * @param id 主键
     * @return 作者
     */
    Mono<Author> findAuthorById(Long id);
}